package com.mytomcat.catalina.valve;

import com.mytomcat.catalina.container.StandardContext;
import com.mytomcat.catalina.request.Request;
import com.mytomcat.catalina.response.Response;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 标准host阀
 *
 * @author supu
 * @date 2019-04-19 17:27
 **/
public class StandardHostValve extends ValveBase {
    private static final Logger LOGGER = LoggerFactory.getLogger(StandardHostValve.class);

    @Override
    public void invoke(Request request, Response response) {
        LOGGER.info("StandardHostValve invoke");

        StandardContext context = request.getContext();
        context.getPipeline().getFirst().invoke(request, response);
    }
}
